package com.daervin.svc.pipeline;

import com.daervin.svc.dal.model.HotItem;
import com.daervin.svc.service.IResumeService;
import us.codecraft.webmagic.ResultItems;
import us.codecraft.webmagic.Task;
import us.codecraft.webmagic.pipeline.Pipeline;

import java.util.List;

/**
 * @packageName: com.daervin.svc.pipeline
 * @CLassName: TodayHubPipeline
 * @Description:
 * @Author: wanxiong.deng
 * @Date: 2021/4/26 16:19
 */
public class TodayHubPipeline implements Pipeline {
    private IResumeService iResumeService;
    public TodayHubPipeline(IResumeService service){
        this.iResumeService = service;
    }
    @Override
    public void process(ResultItems resultItems, Task task) {
        List<HotItem> itemList = resultItems.get("today");
        System.out.println(itemList.size());
        itemList.forEach(System.out::println);
    }
}
